/** *
 * 大屏数据展示
 */
import request from '@/utils/request';
// 设备告警详情列表
export function alarmScrolling(data: any) {
  return request({
    url: '/dashboard/alarmScrolling',
    method: 'get',
    params: data,
  });
}
export function bigScreenInit() {
  return request({
    url: '/dashboard/dbtoken/get',
    method: 'get',
  });
}
// 图表数据模型
export function dataSourceList(data: any) {
  return request({
    url: '/platformModel/list',
    method: 'get',
    params: data,
  });
}
/** *
 * 页面图表布局
 */
export function queryLayout(data: any) {
  return request({
    url: '/platformLayout/query',
    method: 'get',
    params: data,
  });
}

/** *
 * 发布页面图表布局
 */
export function publishLayout(data: any) {
  return request({
    url: '/platformLayout/publish',
    method: 'post',
    data: data,
  });
}

// 动态拼接后台数据接口--GET请求
export function reqGET_url(url: string, data: any) {
  return request({
    url: url,
    method: 'get',
    params: data,
  });
}
// 动态拼接后台数据接口--POST请求
export function reqPOST_url(url: string, data: any) {
  return request({
    url: url,
    method: 'post',
    data: data,
  });
}

// ================CC攻击==============
// CC攻击-客户端攻击Top5
export function clientTop(data: any) {
  return request({
    url: '/dashboard/ccAnalyze/clientTop',
    method: 'POST',
    data: data,
  });
}
// CC攻击-服务端攻击Top5
export function serverTop(data: any) {
  return request({
    url: '/dashboard/ccAnalyze/serverTop',
    method: 'POST',
    data: data,
  });
}
// CC攻击-攻击详情列表
export function ccEventList(data: any) {
  return request({
    url: '/dashboard/ccAnalyze/eventList',
    method: 'POST',
    data: data,
  });
}
// CC攻击事件列表，展开
export function eventListDetail(data: any) {
  return request({
    url: '/dashboard/ccAnalyze/eventListDetail',
    method: 'POST',
    data: data,
  });
}
// ================3D地球==============
// 3D地球
export function get3DMap(data: any) {
  return request({
    url: '/dashboard/eventOverallAnalyze/3DMap',
    method: 'GET',
    params: data,
  });
}
// 安全事件实时列表
export function realTimeList(data: any) {
  return request({
    url: '/dashboard/eventOverallAnalyze/realTimeList',
    method: 'GET',
    params: data,
  });
}
// 大屏-各类安全事件数统计
export function totalOverall(data: any) {
  return request({
    url: '/dashboard/eventOverallAnalyze/totalOverall',
    method: 'get',
    params: data,
  });
}
// ===============僵尸主机============
// 僵尸主机大屏概览
export function overall(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/overall',
    method: 'GET',
    params: data,
  });
}
// 详情--控制主机排名
export function ctlHostRank(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/ctlHostRank',
    method: 'post',
    data: data,
  });
}
// 控制主机，僵尸主机Top5展开
export function ctlHostRankZombieDetail(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostRankZombieDetail',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机排名
export function zombieHostRank(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostRank',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机排名-控制主机Top5展开
export function zombieHostRankCtlDetail(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostRankCtlDetail',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机事件排名
export function zombieHostEventRank(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostEventRank',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机事件排名-僵尸主机Top5展开
export function zombieHostEventRankZombieDetail(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostEventRankZombieDetail',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机事件排名-控制主机Top5展开
export function zombieHostEventRankCtlDetail(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostEventRankCtlDetail',
    method: 'post',
    data: data,
  });
}
/** *详情--僵尸主机统计--上侧统计
 详情—僵尸主机统计—上侧统计
 总事件数、僵尸主机数/控制主机数、阻断/警告数
 ***/
export function zombieHostStatisticsOverview(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostStatisticsOverview',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机统计--控制主机地理分布
export function zombieHostStatisticsCtlHost(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostStatisticsCtlHost',
    method: 'post',
    data: data,
  });
}
// 详情--僵尸主机统计--攻击类型分布
export function zombieHostStatisticsRules(data: any) {
  return request({
    url: '/dashboard/zombieHostAnalyze/zombieHostStatisticsRules',
    method: 'post',
    data: data,
  });
}

// ========================流量分析======
// 大屏--流量分析-总览
export function flowAnalyzeoverall(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/overall',
    method: 'get',
    params: data,
  });
}
// 详情—接口流量分析—上层概览
export function flowAnalyzeOverview(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/overview',
    method: 'post',
    data: data,
  });
}
// 详情--网络层协议分布
export function ipDistributed(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/ipDistributed',
    method: 'post',
    data: data,
  });
}
// 详情—接口流量分析—传输层协议分布(入口方向)
export function protocolDistributed(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/protocolDistributed',
    method: 'post',
    data: data,
  });
}
// 详情--字节数大小分布
export function pktSizeDistributed(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/pktSizeDistributed',
    method: 'post',
    data: data,
  });
}
// 详情--流入流出流量统计
export function inOutFlowStatistic(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/inOutFlowStatistic',
    method: 'post',
    data: data,
  });
}
// 详情--接口包速率趋势图
export function inOutPktStatistic(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/inOutPktStatistic',
    method: 'post',
    data: data,
  });
}
// 详情--TOP10主机流量
export function top10PcFlow(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/top10PcFlow',
    method: 'post',
    data: data,
  });
}

// 网口名称列表
export function listInterface(data: any) {
  return request({
    url: '/dashboard/flowAnalyze/listInterface',
    method: 'get',
    params: data,
  });
}
// ===============详情---攻击检测================
// 大屏-攻击检测概览
export function attackOverall(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/overall',
    method: 'get',
    params: data,
  });
}
// 详情--攻击统计--攻击级别分布
export function statisticLevels(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/statisticLevels',
    method: 'post',
    data: data,
  });
}
// 详情--攻击统计--攻击类别分布
export function statisticRuleType(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/statisticRuleType',
    method: 'post',
    data: data,
  });
}
// 详情--攻击统计--攻击趋势图
export function statisticTrend(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/statisticTrend',
    method: 'post',
    data: data,
  });
}
// 详情--攻击排名--列表
export function attackRank(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/attackRank',
    method: 'post',
    data: data,
  });
}
// 详情--攻击排名--列表详情-受攻击主机排名
export function attackRankDetail(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/attackRankDetail',
    method: 'post',
    data: data,
  });
}
// 详情--攻击排名--列表详情-攻击主机排名
export function attackRankDetail2(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/attackRankDetail2',
    method: 'post',
    data: data,
  });
}

// 详情--受攻击主机排名--列表
export function beAttackedHostRankList(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/beAttackedHostRankList',
    method: 'post',
    data: data,
  });
}
// 详情--受攻击主机排名--点击事件
export function beAttackedHostEventList(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/beAttackedHostEventList',
    method: 'post',
    data: data,
  });
}
// 详情—受攻击主机排名—列表—展开攻击源主机列表
export function beAttackHostList(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/beAttackHostList',
    method: 'post',
    data: data,
  });
}

// 详情--攻击源主机排名--列表
export function attackedHostRankList(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/attackedHostRankList',
    method: 'post',
    data: data,
  });
}
// 详情—攻击源主机排名—列表—展开被攻击主机列表
export function attackHostList(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/attackHostList',
    method: 'post',
    data: data,
  });
}
// 详情--攻击源主机排名--列表点击事件
export function attackedHostEventList(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/attackedHostEventList',
    method: 'post',
    data: data,
  });
}
// 详情—受攻击主机排名—攻击趋势图
export function dstIpTrend(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/dstIpTrend',
    method: 'post',
    data: data,
  });
}
// 详情—攻击源主机排名—攻击趋势图
export function srcIpTrend(data: any) {
  return request({
    url: '/dashboard/attackDetectionAnalyze/srcIpTrend',
    method: 'post',
    data: data,
  });
}
// ==============连接数=============
// 接排名TOP10查询接口
export function LinkRankGetTop10(data: any) {
  return request({
    url: '/infoLinkNum/getTop10',
    method: 'get',
    params: data,
  });
}

// 连接排名分页查询接口
export function currentLinkRank(data: any) {
  return request({
    url: '/infoLinkNum/currentLinkRank',
    method: 'post',
    data: data,
  });
}
// 当前连接数查询
export function LinkRanklistByKey(data: any) {
  return request({
    url: '/infoLink/listByKey',
    method: 'post',
    data: data,
  });
}

// ===============ddos============
// 当前连接数查询
export function ddosOverall(data: any) {
  return request({
    url: '/dashboard/ddosAnalyze/overall',
    method: 'get',
    params: data,
  });
}
// TOP-源IP
export function srcIpAnalyzeDDOS(data: any) {
  return request({
    url: '/dashboard/ddosAnalyze/srcIp',
    method: 'post',
    data: data,
  });
}
// TOP目的IP
export function dstIpAnalyzeDDOS(data: any) {
  return request({
    url: '/dashboard/ddosAnalyze/dstIp',
    method: 'post',
    data: data,
  });
}
// 协议分布图
export function protocolDDOS(data: any) {
  return request({
    url: '/dashboard/ddosAnalyze/protocol',
    method: 'post',
    data: data,
  });
}
// ddos趋势图
export function trendDDOS(data: any) {
  return request({
    url: '/dashboard/ddosAnalyze/trend',
    method: 'post',
    data: data,
  });
}
// ===============Arp—概览—============
// 事件类别统计
export function arpOverall(data: any) {
  return request({
    url: '/dashboard/arpAnalyze/overall',
    method: 'get',
    params: data,
  });
}
// Arp—源IP统计分析
export function srcIpAnalyze(data: any) {
  return request({
    url: '/dashboard/arpAnalyze/srcIpAnalyze',
    method: 'post',
    data: data,
  });
}
// Arp—源MAC统计分析
export function srcMacAnalyze(data: any) {
  return request({
    url: '/dashboard/arpAnalyze/srcMacAnalyze',
    method: 'post',
    data: data,
  });
}
// Arp—按时间统计数据量
export function overallAnalyze(data: any) {
  return request({
    url: '/dashboard/arpAnalyze/overallAnalyze',
    method: 'post',
    data: data,
  });
}
// Arp—列表统计分析
export function arplistAnalyze(data: any) {
  return request({
    url: '/dashboard/arpAnalyze/listAnalyze',
    method: 'post',
    data: data,
  });
}
// 获取所有链路
export function getAllLink(data: any) {
  return request({
    url: '/configBusinessPort/getAllLink',
    method: 'get',
    params: data,
  });
}
// ===============攻击事件概览分布—============
// 攻击事件概览分布
export function getAllSSL(data: any) {
  return request({
    url: '/dashboard/sslAnalyze/overall',
    method: 'get',
    params: data,
  });
}
// 攻击事件类别分布
export function ssLeventType(data: any) {
  return request({
    url: '/dashboard/sslAnalyze/eventType',
    method: 'post',
    data: data,
  });
}
// 协议分布
export function sslProtocal(data: any) {
  return request({
    url: '/dashboard/sslAnalyze/protocol',
    method: 'post',
    data: data,
  });
}
// 趋势图
export function sslTrend(data: any) {
  return request({
    url: '/dashboard/sslAnalyze/trend',
    method: 'post',
    data: data,
  });
}
// ==================受影响主机===================
// 主机分析—受影响主机Top10
export function hostEventTop(data: any) {
  return request({
    url: '/dashboard/eventOverallAnalyze/hostEventTop',
    method: 'post',
    data: data,
  });
}
// 主机分析—事件类别分布
export function eventTypeDistributed(data: any) {
  return request({
    url: '/dashboard/eventOverallAnalyze/eventTypeDistributed',
    method: 'post',
    data: data,
  });
}
// 主机分析—异常主机趋势图
export function trendStatistic(data: any) {
  return request({
    url: '/dashboard/eventOverallAnalyze/trendStatistic',
    method: 'post',
    data: data,
  });
}

// ===========沙箱统计==============
// 主机分析—异常主机趋势图
export function sandBoxFileType(data: any) {
  return request({
    url: '/dashboard/sanBoxieAnalyze/fileType',
    method: 'post',
    data: data,
  });
}
// ===============威胁情报—大屏威胁分类===========
// 威胁情报—大屏威胁分类
export function threatType(data: any) {
  return request({
    url: '/dashboard/threatIntelligenceAnalyze/threatType',
    method: 'post',
    data: data,
  });
}

// ===============病毒类别top10—-大屏===========
// 病毒类别top10—
export function virusTypeTop(data: any) {
  return request({
    url: '/dashboard/virusDetectAnalyze/virusTypeTop',
    method: 'post',
    data: data,
  });
}
// ===============应用流量top--大屏===========
// 应用流量top
export function appFlowTop(data: any) {
  return request({
    url: '/dashboard/appAnalyze/appFlowTop',
    method: 'post',
    data: data,
  });
}
